home *** CD-ROM | disk | FTP | other *** search
- Path: fido.asd.sgi.com!mnm
- From: mnm@sgi.com (Michey Mehta)
- Newsgroups: comp.lang.c++
- Subject: Re: SGI C++ volatile keyword and/or #pragma pack
- Date: 13 Jan 1996 00:06:15 GMT
- Organization: Silicon Graphics, Inc.
- Message-ID: <4d6t1n$186@fido.asd.sgi.com>
- References: <4d6ra1$cvf@dialup.ese.lmsc.lockheed.com>
- Reply-To: mnm@engr.sgi.com
- NNTP-Posting-Host: oldmagic.engr.sgi.com
- X-Newsreader: TIN [version 1.2 PL0]
-
- Melnick Andy (melnick@lmsc.lockheed.com) wrote:
- : We've encountered a difficulty (problem?) with the SGI Irix 5.3 C++ compiler
- : (version 4.0?) in which the compiler apparently forces word/longword alignment
- : within structures for word/longwords (2/4 byte variables). We've tried
- : specifying the "#pragma pack(n)" directive -- it works with the C compiler, but
- : the C++ (CC) compiler fails with "warning(3247): unrecognized #pragma". We've
- : also tried specifying the "volatile" keyword in association with the structure,
- : but apparently the compiler is ignoring our attempt at guidance. Anybody know
- : if there's a way to force the compiler to forego padding?
-
- We don't yet support pragma pack in Irix 5.3 C++. Watch for patch 894, which
- will support this: we will release this towards the end of January.
-
- --
- Michey Mehta
- Silicon Graphics
-